<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('学生详情列表')" />
    <style>
        td{
            white-space:nowrap;
            overflow:hidden;
            word-break:keep-all;
        }
    </style>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li>
                            <label>姓名：</label>
                            <input type="text" name="name"/>
                        </li>
                        <li>
                            <label>身份证号码：</label>
                            <input type="text" name="identificationNumber"/>
                        </li>
                        <li>
                            <input type="text" name="mobilePhone"/>
                        </li>
                        <li>
                            <label>批次: </label>
                            <select id="dictType" name="batch" class="form-control">
                                <option value=""  >---请选择---</option>
                                <option th:each="batch : ${batchList}" th:text="${batch.batch}" th:value="${batch.batch}" ></option>
                        </select>
                        </li>
                        <li>
                            <label>填写完毕: </label>
                            <select id="completed" name="completed" class="form-control">
                                <option  value=""  >请选择</option>
                                <option  value="0"  >否</option>
                                <option  value="1"  >是</option>
                            </select>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="btn-group-sm" id="toolbar" role="group">
         <!--   <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="easywenku:studentDetails:add">
                <i class="fa fa-plus"></i> 添加
            </a>-->
            <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="easywenku:studentDetails:edit">
                <i class="fa fa-edit"></i> 修改
            </a>
            <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="easywenku:studentDetails:remove">
                <i class="fa fa-remove"></i> 删除
            </a>
            <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="easywenku:studentDetails:export">
                <i class="fa fa-download"></i> 导出
            </a>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('easywenku:studentDetails:edit')}]];
    var removeFlag = [[${@permission.hasPermi('easywenku:studentDetails:remove')}]];
    var prefix = ctx + "easywenku/studentDetails";

    $(function() {
        var options = {
            url: prefix + "/list",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            modalName: "学生详情",
            columns: [{
                checkbox: true
            },
                {
                    field: 'id',
                    title: 'ID',
                    visible: false
                },
                {
                    field: 'name',
                    title: '姓名',
                },
                {
                    field: 'gender',
                    title: '性别'
                },
                {
                    field: 'nationality',
                    title: '民族'
                },
                {
                    field: 'identificationNumber',
                    title: '身份证号码'
                },
                {
                    field: 'politicalStatus',
                    title: '政治面貌'
                },
                {
                    field: 'mobilePhone',
                    title: '手机'
                },
                {
                    field: 'backupPhone',
                        title: '紧急联系人电话'
                },
    /*            {
                    field: 'admissionsTeacher',
                    title: '招生老师'
                },*/
   /*             {
                    field: 'wechat',
                    title: '微信'
                },*/
                {
                    field: 'mail',
                    title: '邮箱'
                },
                {
                    field: 'educationalLevel',
                    title: '文化程度'
                },
                {
                    field: 'graduatedSchool',
                    title: '毕业学校'
                },
                {
                    field: 'graduationCertificateNumber',
                    title: '毕业证书编号'
                },
                {
                    field: 'graduationDate',
                    title: '毕业日期'
                }
                ,         {
                    field: 'workingHours',
                    title: '参加工作时间'
                },
                {
                    field: 'placeOfResidence',
                    title: '户籍所在地'
                },
 /*               {
                    field: 'examinationProvince',
                    title: '考成人高考考试所在省'
                },
                {
                    field: 'examinationCity',
                    title: '考成人高考考试所在市'
                },
                {
                    field: 'examinationCounty',
                    title: '考成人高考考试所在地区/县'
                },*/
                {
                    field: 'examinationBuilding',
                    title: '考试所在地'
                },
                {
                    field: 'reviewMaterialsAddress',
                    title: '通讯地址'
                },
                {
                    field: 'level1',
                    title: '报考层次'
                },
                {
                    field: 'subjectName1',
                    title: '科类名称'
                },
                {
                    field: 'modality1',
                    title: '学习形式'
                },
                {
                    field: 'collegeName1',
                    title: '报考院校名称1'
                },
                {
                    field: 'applicationMajor1',
                    title: '报考专业1'
                },

                {
                    field: 'collegeName2',
                    title: '报考院校名称2'
                },
                {
                    field: 'applicationMajor2',
                    title: '报考专业2'
                },
/*                {
                    field: 'level2',
                    title: '志愿填报2层次'
                },
                {
                    field: 'subjectName2',
                    title: '志愿填报2科类名称'
                },
                {
                    field: 'modality2',
                    title: '志愿填报2形式'
                },*/
                {
                    field: 'collegeName3',
                    title: '报考院校名称3'
                },
                {
                    field: 'applicationMajor3',
                    title: '报考专业3'
                },
/*                {
                    field: 'level3',
                    title: '志愿填报3层次'
                },
                {
                    field: 'subjectName3',
                    title: '志愿填报3科类名称'
                },
                {
                    field: 'modality3',
                    title: '志愿填报3形式'
                },*/
                {
                    field: 'classTeacher',
                    title: '招生老师'
                },
                {
                    field: 'batch',
                    title: '批次'
                },
   /*

                {field : 'frontPhotoOfIdCard',title : '身份证正面照片',formatter: function(value, row, index) {
                        if(row.frontPhotoOfIdCard){
                            return $.table.imageView(row.frontPhotoOfIdCard);
                        }else{
                            return "-";
                        }
                    }
                },
                {field : 'backPhotoOfIdCard',title : '身份证背面照片',formatter: function(value, row, index) {
                        if(row.backPhotoOfIdCard){
                            return $.table.imageView(row.backPhotoOfIdCard);
                        }else{
                            return "-";
                        }
                    }
                },
                {field : 'photoOfGraduationCertificate',title : '毕业证照片',formatter: function(value, row, index) {
                        if(row.photoOfGraduationCertificate){
                            return $.table.imageView(row.photoOfGraduationCertificate);
                        }else{
                            return "-";
                        }
                    }
                },
                {field : 'medicalCertificatePhotos',title : '医学相关资格证照片',formatter: function(value, row, index) {
                        if(row.medicalCertificatePhotos){
                            return $.table.imageView(row.medicalCertificatePhotos);
                        }else{
                            return "-";
                        }
                    }
                },
                {field : 'blueBackgroundPhoto',title : '蓝底照片',formatter: function(value, row, index) {
                        if(row.blueBackgroundPhoto){
                            return $.table.imageView(row.blueBackgroundPhoto);
                        }else{
                            return "-";
                        }
                    }
                },
                {
                    field: 'submitter',
                    title: '提交人'
                },
                {
                    field: 'submissionTime',
                    title: '提交时间'
                },
                {
                    field: 'changeTime',
                    title: '修改时间'
                },
                {
                    field: 'fillInTime',
                    title: '填写时长'
                },
                {
                    field: 'fillInEquipment',
                    title: '填写设备'
                },
                {
                    field: 'operatingSystem',
                    title: '操作系统'
                },
                {
                    field: 'browser',
                    title: '浏览器'
                },
                {
                    field: 'fillInCountries',
                    title: '填写国家'
                },
                {
                    field: 'fillInProvince',
                    title: '填写省'
                },
                {
                    field: 'fillInCity',
                    title: '填写市'
                },
                {
                    field: 'confirmTheLocationOnSite',
                    title: '现场确认地点'
                },
                {
                    field: 'testScores',
                    title: '成考成绩'
                },
                {
                    field: 'admissionSchool',
                    title: '录取学校'
                },
                {
                    field: 'admissionMajor',
                    title: '录取专业'
                },
                {
                    field: 'studentNumber',
                    title: '考生号'
                },
                {
                    field: 'studentId',
                    title: '学号'
                },
                {
                    field: 'educationalLevel',
                    title: '学历层次'
                },
                {
                    field: 'schoolCode',
                    title: '学校代码'
                },
                {
                    field: 'schoolType',
                    title: '所在校别'
                },*/

                {
                    field: 'remark',
                    title: '备注'
                },

                {field : 'completed',title : '填写完毕',formatter: function(value, row, index) {
                        if(row.completed ==='0'){
                            return "否";
                        }else{
                            return "是";
                        }
                    }
                },


                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
        };
        $.table.init(options);
    });

</script>
</body>
</html>
